#include "utility.h"

const Point3f Point3f::operator+ (float delta)
{
	return Point3f(x+delta, y+delta, z+delta);
}

const Point3f Point3f::AddX(float delta)
{
	return Point3f(x+delta, y, z);
}

const Point3f Point3f::AddY(float delta)
{
	return Point3f(x, y+delta, z);
}

const Point3f Point3f::AddZ(float delta)
{
	return Point3f(x, y, z+delta);
}

Point3f& Point3f::operator+= (float delta)
{
	this->x += delta;
	this->y += delta;
	this->z += delta;
	return *this;
}

Point3f& Point3f::IncX(float delta)
{
	this->x += delta;
	return *this;
}

Point3f& Point3f::IncY(float delta)
{
	this->y += delta;
	return *this;
}

Point3f& Point3f::IncZ(float delta)
{
	this->z += delta;
	return *this;
}